<!DOCTYPE html>
<html>
<?php 
	$is_from_register = $from == Variable::MAIL_REGISTER;
	$is_from_login = $from == Variable::MAIL_LOGIN;
	$is_from_register_send = $from == Variable::MAIL_REGISTER_SEND;
	$is_from_forgot = $from == Variable::MAIL_FORGOT;
	
	$title = '';
	$header = '';
	$todo = '';
	$send_url = '';
	if($is_from_register)
	{
		$title = '请登录邮箱验证';
		$header = '感谢您注册轻松记！';	
		$todo = '完成注册。';
		$send_url = site_url('user/send_mail/'.md5($mail));
	}
	else if($is_from_login)
	{
		$title = '请登录邮箱验证';
		$header = '对不起，您的邮箱尚未验证。';
		$todo = '完成注册。';
		$send_url = site_url('user/send_mail/'.md5($mail));
	}
	else if($is_from_register_send)
	{
		$title = '请登录邮箱验证';
		$header = '验证邮件已经重新发送。';
		$todo = '完成注册。';
		$send_url = site_url('user/send_mail/'.md5($mail));
	}
	else if($is_from_forgot)
	{
		$title = '请登录邮箱修改密码';
		$header = '修改密码邮件已经发送。请在15分钟内修改密码。';
		$todo = '修改密码。';
		$send_url = site_url('user/forgot/?mail='.$mail);
	}
	
	$this->load->library('utils/mail_utils');
	$mail_url = $this->mail_utils->get_mail_url($mail);
?>
<head>
		<meta charset="utf-8">
		<title><?php echo $title?></title>
		<link href="<?php echo base_url()?>css/bootstrap.css" rel="stylesheet" />
		<!--<link href="css/bootstrap-responsive.min.css" rel="stylesheet" />-->
		<link href="<?php echo base_url()?>css/style.css" rel="stylesheet" />
		<script src="http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
		<script src="http://lib.sinaapp.com/js/jquery-ui/1.8.2/jquery-ui.min.js" type="text/javascript"></script>
		<script src="http://lib.sinaapp.com/js/bootstrap/2.0.3/js/bootstrap.min.js" type="text/javascript"></script>
		<script src="<?php echo base_url()?>js/fun.js" type="text/javascript"></script>
	</head>
<body>
<div class="container">
			<div class="navbar login-navbar">
				<div class="navbar-inner navbar-fixed-top">
					<div class="container">
						<a class="brand" href="#"></a>
						<ul class="nav pull-right">
							<li class="divider-vertical"></li>
							<li class="dropdown">
								<a href="#"> <i class="icon-white icon-heart"></i>使用帮助</a>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</div>
<div class="container front-container">
			
			<div class="alert-main">
				
				<div class="alert-console">
					
					<h1><?php echo $header?></h1>
					<div>
						请<a target="_blank" href="<?php echo $mail_url?>">登录邮箱</a><?php echo $todo?>
					</div>



					<h2>未收到邮件？</h2>
						<ol>
							<li>请检查垃圾箱，是否被当成垃圾邮件过滤了。</li>
							<li><a href="<?php echo $send_url?>">重新发送</a>验证邮件。</li>
						</ol>
						

				</div>				
			</div>			
			
		</div>


</body>
</html>